package com.stox.ui.swing.widget;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import com.stox.ui.swing.action.ExitAction;
import com.stox.ui.swing.util.MessageSource;
import com.stox.ui.swing.widget.wrapper.JMenuItem;

public class ExitMenuItem extends JMenuItem{
	private static final long serialVersionUID = 4578507838055524229L;

	public ExitMenuItem() {
		super(MessageSource.getMessage("Exit"),KeyEvent.VK_F4,ActionEvent.ALT_MASK,"exit.jpg");
		addActionListener(new ExitAction());
	}
	
	@Override
	public int getOrder() {
		return Integer.MAX_VALUE;
	}
	
	@Override
	public Class<?> getParentClass() {
		return FileMenu.class;
	}
	
}
